# $Id: PKGBUILD 150465 2012-02-18 00:25:08Z allan $
# Maintainer: Paul Mattal <paul@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=enscript
pkgver=1.6.5.2
pkgrel=2
pkgdesc="Convert ASCII files to PostScript suitable for printing"
arch=('i686' 'x86_64')
backup=('etc/enscript/enscript.cfg')
depends=('glibc')
license=('GPL2')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('c1d2a0d4b44ca30634742b299881b0e2')
url="http://git.savannah.gnu.org/cgit/enscript.git"

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc/enscript --mandir=/usr/share/man \
    --infodir=/usr/share/info
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$pkgdir/usr \
    sysconfdir=$pkgdir/etc/enscript mandir=$pkgdir/usr/share/man \
    infodir=$pkgdir/usr/share/info install
}

# vim: ts=2 sw=2 et ft=sh
